package com.example.demo.pattern.factorypattern.pizza;

public abstract class Pizza {

    private String dough;
    private String sauce;

    public Pizza() {
        System.out.println("creating Pizza...");
    }

    public void bake(){
        System.out.println("baking...");
    }

    public void cut(){
        System.out.println("cutting...");
    }

    public String getDough() {
        return dough;
    }

    public void setDough(String dough) {
        this.dough = dough;
    }

    public String getSauce() {
        return sauce;
    }

    public void setSauce(String sauce) {
        this.sauce = sauce;
    }

    @Override
    public String toString() {
        return "Pizza{" +
                "dough='" + dough + '\'' +
                ", sauce='" + sauce + '\'' +
                '}';
    }
}
